/*
 * Keyboad.h
 *
 *  Created on: 2011/12/18
 *      Author: naoki
 */

#ifndef INCLUDED_GAMELIB_INPUT_KEYBOARD_H
#define INCLUDED_GAMELIB_INPUT_KEYBOARD_H

namespace NTEngine {
namespace Input {

class Keyboard {
public:
	enum Key{ //isKeyOn,isKeyPressedの引数。a-z,0-9はそのまま文字定数で入れること。
		KEY_UNKNOWN, // KEYCODE_UNKNOWN         = 0,
		KEY_SOFT_LEFT, // AKEYCODE_SOFT_LEFT       = 1,
		KEY_SOFT_RIGHT, // AKEYCODE_SOFT_RIGHT      = 2,
		KEY_HOME, // AKEYCODE_HOME            = 3,
		KEY_BACK,// AKEYCODE_BACK            = 4,
		KEY_CALL, // AKEYCODE_CALL            = 5,
		KEY_ENDCALL, // AKEYCODE_ENDCALL         = 6,

		KEY_RETURN = 0x80, //128番以降を使う
		KEY_TAB,
		KEY_ESC,
		KEY_SHIFT,
		KEY_CONTROL,
		KEY_ALT,
		KEY_F1,
		KEY_F2,
		KEY_F3,
		KEY_F4,
		KEY_F5,
		KEY_F6,
		KEY_F7,
		KEY_F8,
		KEY_F9,
		KEY_F10,
		KEY_F11,
		KEY_F12,
		KEY_UP,
		KEY_DOWN,
		KEY_LEFT,
		KEY_RIGHT,
		KEY_NUM0,
		KEY_NUM1,
		KEY_NUM2,
		KEY_NUM3,
		KEY_NUM4,
		KEY_NUM5,
		KEY_NUM6,
		KEY_NUM7,
		KEY_NUM8,
		KEY_NUM9,
	};
	bool isOn( int i ) const;
	bool isTriggered( int i ) const;
};

} //namespace Input
} //namespace GameLib


#endif
